<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    // 产生[1,100]之间的随机数
    console.log(Math.floor(Math.random() * 100 + 1));

    let obj1 = {firstName: "Jill", lastName: "Smith", points: 50}
    let obj2 = {firstName: "Eve", lastName: "Jackson", points: 94}
    let obj3 = {firstName: "John", lastName: "Doe", points: 80}
    let obj4= {firstName: "Adam", lastName: "Johnson", points: 67}
    let arr = [obj1, obj2, obj3, obj4];
    // document.write("<table>")
    let table = "<table border=''>";
    for (let i = 0; i < arr.length; i++) {
        table += "<tr>"
        table += `<td>${arr[i].firstName}</td><td>${arr[i].lastName}</td><td>${arr[i].points}</td>`;
        table += "</tr>"
    }
    table += "</table>"
    document.write(table);
</script>
</body>
</html>